﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class cms_Admin_Timesheet_viewTimesheet : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.TextBox1.Text = DateTime.Now.Day.ToString() + "/" + DateTime.Now.Month.ToString() + "/" + DateTime.Now.Year.ToString();
    }

    protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    {
        DateTime datetime = Calendar1.SelectedDate;
        this.TextBox1.Text = datetime.Day + "/" + datetime.Month + "/" + datetime.Year;
        this.Calendar1.Visible = false;
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        this.Calendar1.Visible = !this.Calendar1.Visible;
    }
    protected void lbtcreattimesheet_Click(object sender, EventArgs e)
    {
        Controls.Add(LoadControl("~/cms/Admin/Timesheet/createtimesheet.ascx"));
    }
}